home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 45
/
Freelog045.iso
/
Bas
/
Internet
/
VisitURL
/
setup.exe
/
{app}
/
template.txt
< prev
next >
Wrap
Text File
|
2002-10-26
|
3KB
|
96 lines
TEMPLATE
--------
The template must be a well-formed HTML document.
All tokens must be in UPPERCASE. All tokens begin
and end with tweo underscore characters "__".
GENERAL TOKEN DESCRIPTION:
--------------------------
__LINK__
Replaced with the actual HTML link
(i.e. URL with its associated description,
and optionally date). This token should
only occur ONCE, in the <BODY> section
of the template
(See section entitled "__LINK__ TOKEN SYNTAX" below in this file.)
__URLCOUNT__
Replaced with the number of URLs stored.
__GENDATE__
Replaced with the date the HTML file was saved.
__GENTIME__
Replaced with the time the HTML file was saved.
__TITLE__
Replaced with the "HTML Title" string (you can set it in
program Options, "Files" tab, "Title for the HTML file"
edit box).
__LINK__ TOKEN SYNTAX
---------------------
This token is expanded to another string of tokens:
__URLLINK__
(the actual URL, e.g. "http://www.example.com")
__URLDESC__
(the description string, e.g. "Example website".
If description is empty, URL is used instead.)
__URLDESC!__
(the description string, included ONLY if the
description is non-empty. Otherwise the token
is discarded and no text is put in its place)
__URLDATE__
(the date the URL was added to the Visit list)
By default, the __LINK__ token is expanded to:
<A HREF="__URLLINK__">__URLDESC__</A>
If you want to change it, edit the first line of the
template, where this format is defined. Please note
how the first line in the sample template provided
with the program is formatted:
<!--#tokens and text#-->
This is an HTML comment. The actual text must be
contained between two hash characters (#). The
whole string can span over several lines, but it MUST
begin with "<!--#" and end with "#-->" (no quotes).
To be valid, the string MUST contain at least the
__URLLINK__ token (without it, the whole file
would be useless, as there would be no place to save
the URL links!).
It is OK to use the same token more than once, e.g.
<A HREF="__URLLINK__">__URLLINK__</A>
if you don't want to see the descriptions in the HTML file.
Another example:
<A HREF="__URLLINK__">__URLLINK__</A><BR>(__URLDESC__; __URLDATE__)
Try these and see what happens. Remember to wrap these
examples with the comment delimiters and hashes:
<!--#<A HREF="__URLLINK__">__URLLINK__</A>#-->
Example of how the __LINK__ definition can span multiple lines:
<!--#
<P>
<A HREF="__URLLINK__">__URLLINK__</A><BR>
<I>__URLDESC__</I>
</P>
#-->
Note: Do NOT place the above three tokens in the
body of the template. They have no meaning there.
They are only used to form the proper __LINK__ token.
See also: sample template included with the program
distribution (template.tpl).
Questions? Suggestions? Email me at:
marek jedlinski
<marekjed@pobox.com>
No HTML-formatted email please!